home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Resources / HTMLGate 12.2.1B / htmlgate.exe / {app} / SearchEngines / lycos.txt < prev    next >
Text File  |  2003-08-08  |  691b  |  18 lines

  1. <SCRIPT LANGUAGE="Javascript">
  2.  
  3. function doSearchLycos()
  4. {
  5.   var keywords="";
  6.      keywords=document.searchlycos.searchwords.value.toLowerCase();
  7.      while (keywords.indexOf(" ")>0)
  8.      {
  9.            pos=keywords.indexOf(" ",0);
  10.            tmp=keywords.substring(0,pos)+"+"+keywords.substring(pos+1,keywords.length);
  11.            keywords=tmp;
  12.      }
  13.      document.location="http://www.lycos.com/cgi-bin/pursuit?matchmode=and&cat=lycos&query="+keywords;
  14. }
  15. </SCRIPT>
  16.  
  17. <FORM METHOD="post" ACTION="javascript:doSearchLycos();" NAME="searchlycos"><B>Search Lycos for: </B><INPUT TYPE="TEXT" NAME="searchwords" SIZE="30"> <INPUT TYPE="submit" NAME="submit" VALUE="Search"></FORM>
  18.